import request from '@/utils/request'

export function getTaskList(params) {
  return request({
    url: '/api/task-template/list',
    method: 'get',
    params
  })
}
export function getHomeTotal(params) {
  return request({
    url: '/api/home',
    method: 'get',
    params
  })
}
export function taskTemplateCreate(data) {
  return request({
    url: '/api/task-template/create',
    method: 'post',
    data
  })
}
export function taskTemplateUpdata(data) {
  return request({
    url: '/api/task-template/update',
    method: 'post',
    data
  })
}
export function taskManualPublish(data) {
  return request({
    url: '/api/task-template/manual-publish',
    method: 'post',
    data
  })
}
export function taskTemplateDelete(data) {
  return request({
    url: '/api/task-template/delete',
    method: 'post',
    data
  })
}
// 数据模板
export function getDataTemplate(params) {
  return request({
    url: '/api/sheet-template/list',
    method: 'get',
    params
  })
}
export function getDataTemplateDetail(params) {
  return request({
    url: '/api/sheet-template/show',
    method: 'get',
    params
  })
}
export function getTask(params) {
  return request({
    url: '/api/task/list',
    method: 'get',
    params
  })
}
export function getTaskTotal(params) {
  return request({
    url: '/api/task/stat',
    method: 'get',
    params
  })
}
export function getTaskDetail(params) {
  return request({
    url: '/api/task/show',
    method: 'get',
    params
  })
}
export function taskSubRemind(data) {
  return request({
    url: '/api/task/remind',
    method: 'post',
    data
  })
}
export function taskRevoke(data) {
  return request({
    url: '/api/task/revoke',
    method: 'post',
    data
  })
}

export function taskPublish(data) {
  return request({
    url: '/api/task/publish',
    method: 'post',
    data
  })
}
export function getAaggregateReport(params) {
  return request({
    url: '/api/aggregate-report/list',
    method: 'get',
    params
  })
}
export function getAaggregateReportDetail(params) {
  return request({
    url: '/api/aggregate-report/show',
    method: 'get',
    params
  })
}
export function getAggregateFixReport(params) {
  return request({
    url: '/api/aggregate-fix-report/list',
    method: 'get',
    params
  })
}
export function getAggregateFixReportDetail(params) {
  return request({
    url: '/api/aggregate-fix-report/show',
    method: 'get',
    params
  })
}
export function getAggregateFixReportUpdate(data) {
  return request({
    url: '/api/aggregate-fix-report/update',
    method: 'post',
    data
  })
}
export function getAggFixReport(data) {
  return request({
    url: '/api/aggregate-report/fix',
    method: 'post',
    data
  })
}
